import os
import sys

# context = input()
# print(f'this is read context from stdin: {context}')

# filename = input("please input file name: ")

# fd = os.open(filename, os.O_RDONLY)
# # use fileno func to get file description
# os.dup2(fd, sys.stdin.fileno())

# print(f'this is from file "{filename}" read context: {context}')
# os.close(fd)

# ins = input('$ ').split('>')
# command = ins[0].strip().split()
# file = None

# if len(ins) == 2:
#     # get file name
#     file = ins[1].strip()

# # make child process to execute, protect the parent process from being replaced
# child = os.fork()

# if child == 0:
#     if file is not None:
#         # open file and get file description
#         fd = os.open(file, os.O_APPEND | os.O_WRONLY | os.O_CREAT)
#         # make sys.stdin.fileno() point to fd
#         # os.dup2(fd, sys.stdin.fileno())
#         os.dup2(fd, sys.stdout.fileno())
#     os.execvp(command[0], command)
# else:
#     os.waitpid(child, 0)



# ins = input('$ ').split('|')
# command1 = ins[0].strip().split()
# command2 = ins[1].strip().split()

# fd_for_read, fd_for_write = os.pipe()
# child = os.fork()

# if child == 0:
#     os.dup2(fd_for_write, sys.stdout.fileno())
#     os.close(fd_for_read)
#     os.close(fd_for_write)
#     os.execvp(command1[0], command1)
# else:
#     child1 = os.fork()
#     if child1 == 0:
#         os.dup2(fd_for_read, sys.stdin.fileno())
#         os.close(fd_for_write)
#         os.close(fd_for_read)

#         os.execvp(command2[0], command2)
#     else:
#         os.close(fd_for_read)
#         os.close(fd_for_write)
#         os.waitpid(child, 0)
#         os.waitpid(child1, 0)

# ins = input()

# print(ins)
p = os.environ['PWD']
print(p)
